how to run if in python